You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose node-package-manager functonality to be usable when CLI is `require`-d.
* Remove occurrences of `this.$options` in node-package-manager
* Start using `--dry-run` and `--json` for parsing output
* Describes information about dependency packages.
37
+
*/
38
+
interfaceINpmDependencyInfo{
39
+
/**
40
+
* Dependency name.
41
+
*/
42
+
[key: string]: {
43
+
/**
44
+
* Dependency version.
45
+
* @type {string}
46
+
*/
47
+
version: string;
48
+
/**
49
+
* How was the dependency resolved. For example: lodash@latest or underscore@>=1.8.3 <2.0.0
50
+
* @type {string}
51
+
*/
52
+
from: string;
53
+
/**
54
+
* Where was the dependency resolved from. For example: https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz
55
+
* @type {string}
56
+
*/
57
+
resolved: string;
58
+
/**
59
+
* Dependencies of the dependency.
60
+
* @type {INpmDependencyInfo}
61
+
*/
62
+
dependencies?: INpmDependencyInfo;
63
+
/**
64
+
* Set to true when the dependency is invalid.
65
+
* @type {boolean}
66
+
*/
67
+
invalid?: boolean;
68
+
/**
69
+
* If invalid is set to true this will contain errors which make the dependency invalid.
70
+
*/
71
+
problems?: string[];
72
+
}
73
+
}
74
+
75
+
/**
76
+
* Describes information about peer dependency packages.
77
+
*/
78
+
interfaceINpmPeerDependencyInfo{
79
+
required: {
80
+
/**
81
+
* Id used in package.json - for example: zone.js@^0.8.4
82
+
* @type {string}
83
+
*/
84
+
_id: string;
85
+
/**
86
+
* Dependency name.
87
+
* @type {string}
88
+
*/
89
+
name: string;
90
+
/**
91
+
* Dependency version.
92
+
* @type {string}
93
+
*/
94
+
version: string;
95
+
/**
96
+
* If peerMissing below is set to true this will contain information about missing peers.
97
+
*/
98
+
peerMissing?: [
99
+
{
100
+
/**
101
+
* The id of the package which requires the unmet peer dependency.
102
+
* @type {string}
103
+
*/
104
+
requiredBy: string;
105
+
/**
106
+
* The id of the unmet peer dependency.
107
+
* @type {string}
108
+
*/
109
+
requires: string;
110
+
}
111
+
];
112
+
/**
113
+
* Dependencies of the dependency.
114
+
* @type {INpmDependencyInfo}
115
+
*/
116
+
dependencies: INpmDependencyInfo;
117
+
/**
118
+
* Whether the dependency was found or not.
119
+
* @type {boolean}
120
+
*/
121
+
_found: boolean;
122
+
};
123
+
/**
124
+
* Set to true if peer dependency unmet.
125
+
* @type {boolean}
126
+
*/
127
+
peerMissing: boolean;
128
+
}
129
+
130
+
/**
131
+
* Describes information returned by the npm CLI upon calling install with --json flag.
132
+
*/
133
+
interfaceINpmInstallCLIResult{
134
+
/**
135
+
* The name of the destination package. Note that this is not the installed package.
136
+
* @type {string}
137
+
*/
138
+
name: string;
139
+
/**
140
+
* The version of the destination package. Note that this is not the installed package.
141
+
* @type {string}
142
+
*/
143
+
version: string;
144
+
/**
145
+
* Installed dependencies. Note that whenever installing a particular dependency it is listed as the first key and after it any number of peer dependencies may follow.
146
+
* Whenever installing npm prints the information by reversing the tree of operations and because the initial dependency was installed last it is listed first.
0 commit comments