UNPKG

646 BTypeScriptView Raw
1/// <reference types="node" />
2import { Stats } from "fs-extra-p";
3import { Lazy } from "lazy-val";
4export interface Dependency {
5 name: string;
6 version: string;
7 path: string;
8 extraneous: boolean;
9 optional: boolean;
10 dependencies: Map<string, Dependency> | null;
11 directDependencyNames: Array<string> | null;
12 peerDependencies: {
13 [key: string]: any;
14 } | null;
15 optionalDependencies: {
16 [key: string]: any;
17 } | null;
18 realName: string;
19 link?: string;
20 parent?: Dependency;
21 stat?: Stats;
22}
23export declare function createLazyProductionDeps(projectDir: string): Lazy<Dependency[]>;