Skip to content

Commit e06b3a8

Browse files
authored
Merge pull request #1576 from paulvanbrenk/fixTypingsAqq
Make sure we send options for the install_typings in both cases.
2 parents a04a535 + 5dce673 commit e06b3a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Nodejs/Product/Nodejs/TypingsAcquisitionTool/bin/install_typings

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ var argv = minimist(process.argv.slice(2), {
1717
});
1818

1919
var emitter = new events.EventEmitter();
20-
2120
var packagesToInstall = argv._;
2221

2322
if (!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
}

0 commit comments

Comments
 (0)