UNPKG

1.69 kBTypeScriptView Raw
1import { PkgIdentifier } from '../types';
2import { Dependencies } from '../util';
3export declare type PnpmDepPath = string;
4export declare type PnpmLockPkg = {
5 name?: string;
6 version?: string;
7 id?: string;
8 dev: boolean;
9 optional?: boolean;
10 dependencies: Record<string, string>;
11 optionalDependencies?: Record<string, string>;
12 peerDependencies?: Record<string, string>;
13 engines?: Record<string, string>;
14 os?: string;
15 cpu?: string;
16 deprecated?: boolean;
17 bundledDependencies?: Record<string, string>;
18 requiresBuild?: boolean;
19 prepare?: boolean;
20 hasBin?: boolean;
21};
22export declare type NormalisedPnpmPkg = {
23 name: string;
24 version: string;
25 id: string;
26 isDev: boolean;
27 dependencies: Record<string, string>;
28 devDependencies: Record<string, string>;
29 optionalDependencies?: Record<string, string>;
30};
31export declare type PnpmNode = {
32 name: string;
33 version: string;
34 id: string;
35 isDev: boolean;
36 dependencies: Dependencies;
37 optionalDependencies?: Dependencies;
38 missingLockFileEntry?: boolean;
39};
40export declare type NormalisedPnpmPkgs = Record<PkgIdentifier, NormalisedPnpmPkg>;
41export declare type PnpmDeps = Record<string, {
42 name: string;
43 version: string;
44 specifier?: string;
45 isDev: boolean;
46}>;
47export declare type ParsedDepPath = {
48 name?: string;
49 version?: string;
50};
51export declare type PnpmWorkspacePath = string;
52export declare type DepName = string;
53export declare type DepVersion = string;
54export declare type PnpmImporter = Record<DepName, DepVersion>;
55export declare type PnpmImporters = Record<PnpmWorkspacePath, Record<DepName, DepVersion>>;