Skip to content

Commit

Permalink
[INTERNAL] ui5 tree: Include deduped modules in output
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Dec 17, 2018
1 parent dcd1d63 commit cce7f7a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/cli/commands/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ tree.handler = function(argv) {
const treeify = require("treeify");

let p;
const options = {
translator: argv.translator,
translatorOptions: {
includeDeduped: true
},
configPath: argv.config
};
if (argv.full) {
p = normalizer.generateProjectTree({
translator: argv.translator,
configPath: argv.config
});
p = normalizer.generateProjectTree(options);
} else {
p = normalizer.generateDependencyTree({
translator: argv.translator,
configPath: argv.config
});
p = normalizer.generateDependencyTree(options);
}

p.then(function(tree) {
Expand Down

0 comments on commit cce7f7a

Please sign in to comment.