File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 53
53
"fast-toml" : " ^0.5.4" ,
54
54
"fast-xml-parser" : " ^4.2.4" ,
55
55
"help" : " ^3.0.2" ,
56
+ "node-fetch" : " ^2.6.7" ,
56
57
"packageurl-js" : " ^1.0.2" ,
57
- "yargs" : " ^17.7.2" ,
58
- "node-fetch" : " ^2.6.7"
58
+ "yargs" : " ^17.7.2"
59
59
},
60
60
"devDependencies" : {
61
61
"@babel/core" : " ^7.23.2" ,
Original file line number Diff line number Diff line change @@ -89,8 +89,27 @@ export function testSelectExhortBackend(opts) {
89
89
*/
90
90
let theUrl
91
91
92
+ /**
93
+ * @overload
94
+ * @param {string } manifest
95
+ * @param {true } html
96
+ * @param {object } [opts={}]
97
+ * @returns {Promise<string> }
98
+ * @throws {Error }
99
+ */
100
+
101
+ /**
102
+ * @overload
103
+ * @param {string } manifest
104
+ * @param {false } html
105
+ * @param {object } [opts={}]
106
+ * @returns {Promise<AnalysisReport> }
107
+ * @throws {Error }
108
+ */
109
+
92
110
/**
93
111
* Get stack analysis report for a manifest file.
112
+ * @overload
94
113
* @param {string } manifest - path for the manifest
95
114
* @param {boolean } [html=false] - true will return a html string, false will return AnalysisReport
96
115
* @param {{} } [opts={}] - optional various options to pass along the application
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default class Javascript_npm extends Base_javascript {
21
21
_updateLockFileCmdArgs ( manifestDir ) {
22
22
const args = [ 'install' , '--package-lock-only' ]
23
23
if ( manifestDir ) {
24
- args . push ( '--dir ' , manifestDir )
24
+ args . push ( '--prefix ' , manifestDir )
25
25
}
26
26
return args ;
27
27
}
You can’t perform that action at this time.
0 commit comments