-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage-json.d.ts
80 lines (70 loc) · 1.65 KB
/
package-json.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
export interface PackageJSON {
readonly name: string;
readonly version?: string;
readonly description?: string;
readonly keywords?: string[];
readonly homepage?: string;
readonly bugs?: string|Bugs;
readonly license?: string;
readonly author?: string|Author;
readonly contributors?: string[]|Author[];
readonly files?: string[];
readonly main?: string;
readonly bin?: string|BinMap;
readonly man?: string|string[];
readonly directories?: Directories;
readonly repository?: string|Repository;
readonly scripts?: ScriptsMap;
readonly config?: Config;
readonly dependencies?: DependencyMap;
readonly devDependencies?: DependencyMap;
readonly peerDependencies?: DependencyMap;
readonly optionalDependencies?: DependencyMap;
readonly bundledDependencies?: string[];
readonly engines?: Engines;
readonly os?: string[];
readonly cpu?: string[];
readonly preferGlobal?: boolean;
readonly private?: boolean;
readonly publishConfig?: PublishConfig;
}
export interface Author {
name: string;
email?: string;
homepage?: string;
}
export interface BinMap {
[key: string]: string;
}
export interface Bugs {
email: string;
url: string;
}
export interface Config {
name?: string;
config?: Object;
}
export interface DependencyMap {
[dependencyName: string]: string;
}
export interface Directories {
lib?: string;
bin?: string;
man?: string;
doc?: string;
example?: string;
}
export interface Engines {
node?: string;
npm?: string;
}
export interface PublishConfig {
registry?: string;
}
export interface Repository {
type: string;
url: string;
}
export interface ScriptsMap {
[key: string]: string;
}