1 | export interface Dependencies {
|
2 | [name: string]: string;
|
3 | }
|
4 | export declare type PackageBin = string | {
|
5 | [commandName: string]: string;
|
6 | };
|
7 | export declare type PackageScripts = {
|
8 | [name: string]: string;
|
9 | } & {
|
10 | prepublish?: string;
|
11 | prepare?: string;
|
12 | prepublishOnly?: string;
|
13 | prepack?: string;
|
14 | postpack?: string;
|
15 | publish?: string;
|
16 | postpublish?: string;
|
17 | preinstall?: string;
|
18 | install?: string;
|
19 | postinstall?: string;
|
20 | preuninstall?: string;
|
21 | uninstall?: string;
|
22 | postuninstall?: string;
|
23 | preversion?: string;
|
24 | version?: string;
|
25 | postversion?: string;
|
26 | pretest?: string;
|
27 | test?: string;
|
28 | posttest?: string;
|
29 | prestop?: string;
|
30 | stop?: string;
|
31 | poststop?: string;
|
32 | prestart?: string;
|
33 | start?: string;
|
34 | poststart?: string;
|
35 | prerestart?: string;
|
36 | restart?: string;
|
37 | postrestart?: string;
|
38 | preshrinkwrap?: string;
|
39 | shrinkwrap?: string;
|
40 | postshrinkwrap?: string;
|
41 | };
|
42 | export interface PeerDependenciesMeta {
|
43 | [dependencyName: string]: {
|
44 | optional?: boolean;
|
45 | };
|
46 | }
|
47 | export interface DependenciesMeta {
|
48 | [dependencyName: string]: {
|
49 | injected?: boolean;
|
50 | node?: string;
|
51 | };
|
52 | }
|
53 | export interface PublishConfig extends Record<string, unknown> {
|
54 | directory?: string;
|
55 | executableFiles?: string[];
|
56 | }
|
57 | declare type Version = string;
|
58 | declare type Pattern = string;
|
59 | export interface TypesVersions {
|
60 | [version: Version]: {
|
61 | [pattern: Pattern]: string[];
|
62 | };
|
63 | }
|
64 | export interface BaseManifest {
|
65 | name?: string;
|
66 | version?: string;
|
67 | bin?: PackageBin;
|
68 | description?: string;
|
69 | directories?: {
|
70 | bin?: string;
|
71 | };
|
72 | dependencies?: Dependencies;
|
73 | devDependencies?: Dependencies;
|
74 | optionalDependencies?: Dependencies;
|
75 | peerDependencies?: Dependencies;
|
76 | peerDependenciesMeta?: PeerDependenciesMeta;
|
77 | dependenciesMeta?: DependenciesMeta;
|
78 | bundleDependencies?: string[];
|
79 | bundledDependencies?: string[];
|
80 | homepage?: string;
|
81 | repository?: string | {
|
82 | url: string;
|
83 | };
|
84 | scripts?: PackageScripts;
|
85 | config?: object;
|
86 | engines?: {
|
87 | node?: string;
|
88 | npm?: string;
|
89 | pnpm?: string;
|
90 | };
|
91 | cpu?: string[];
|
92 | os?: string[];
|
93 | main?: string;
|
94 | module?: string;
|
95 | typings?: string;
|
96 | types?: string;
|
97 | publishConfig?: PublishConfig;
|
98 | typesVersions?: TypesVersions;
|
99 | readme?: string;
|
100 | keywords?: string[];
|
101 | author?: string;
|
102 | license?: string;
|
103 | }
|
104 | export declare type DependencyManifest = BaseManifest & Required<Pick<BaseManifest, 'name' | 'version'>>;
|
105 | export declare type PackageExtension = Pick<BaseManifest, 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'peerDependenciesMeta'>;
|
106 | export interface PeerDependencyRules {
|
107 | ignoreMissing?: string[];
|
108 | allowedVersions?: Record<string, string>;
|
109 | }
|
110 | export declare type ProjectManifest = BaseManifest & {
|
111 | pnpm?: {
|
112 | neverBuiltDependencies?: string[];
|
113 | onlyBuiltDependencies?: string[];
|
114 | overrides?: Record<string, string>;
|
115 | packageExtensions?: Record<string, PackageExtension>;
|
116 | peerDependencyRules?: PeerDependencyRules;
|
117 | };
|
118 | private?: boolean;
|
119 | resolutions?: Record<string, string>;
|
120 | };
|
121 | export declare type PackageManifest = DependencyManifest & {
|
122 | deprecated?: string;
|
123 | };
|
124 | export {};
|