Skip to content

Commit ded3339

Browse files
committed
Fixed the short-name expansion
1 parent 6556f78 commit ded3339

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Tsifier.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ module.exports = function (ts) {
5454
function parseOptions(opts, bopts) {
5555

5656
// Expand any short-name, command-line options
57-
opts = Object.assign({
58-
module: opts.m,
59-
project: opts.p,
60-
target: opts.t
61-
}, opts);
57+
var expanded = {};
58+
if (opts.m) { expanded.module = opts.m; }
59+
if (opts.p) { expanded.project = opts.p; }
60+
if (opts.t) { expanded.target = opts.t; }
61+
opts = Object.assign(expanded, opts);
6262

6363
var configFile;
6464
if (fileExists(opts.project)) {

0 commit comments

Comments
 (0)