File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Nodejs/Product/Nodejs/TypingsAcquisitionTool/bin Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ var argv = minimist(process.argv.slice(2), {
1717} ) ;
1818
1919var emitter = new events . EventEmitter ( ) ;
20-
2120var packagesToInstall = argv . _ ;
2221
2322if ( ! packagesToInstall . length ) {
2423 // top level package install
25- typingsTool . installTypingsForProject ( options )
24+ typingsTool . installTypingsForProject ( { save : argv . save ,
25+ emitter : emitter ,
26+ global : true ,
27+ cwd : argv . cwd || process . cwd ( ) } )
2628} else {
2729 typingsTool . runAll ( packagesToInstall . map ( function ( name ) {
2830 var options = {
@@ -31,6 +33,7 @@ if (!packagesToInstall.length) {
3133 global : name === "node" , // Assume everything else refers to a CommonJS module
3234 cwd : argv . cwd || process . cwd ( )
3335 } ;
36+
3437 return typingsTool . installTypingsForPackage ( name , options ) ;
3538 } ) ) ;
3639}
You can’t perform that action at this time.
0 commit comments