Skip to content

Commit

Permalink
Moved building fastboot config tree from postProcessTree to treeForPu…
Browse files Browse the repository at this point in the history
…blic (#690)

Moved building fastboot config tree from postProcessTree to treeForPublic
  • Loading branch information
rwjblue committed May 3, 2019
2 parents ba9e689 + 7e44433 commit 97e4928
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions index.js
Expand Up @@ -218,23 +218,10 @@ module.exports = {

let newTree = new MergeTrees(trees);

return newTree;
},

/**
* After the entire Broccoli tree has been built for the `dist` directory,
* adds the `fastboot-config.json` file to the root.
*
*/
postprocessTree(type, tree) {
if (type === 'all') {
let fastbootConfigTree = this._buildFastbootConfigTree(tree);

// Merge the package.json with the existing tree
return new MergeTrees([tree, fastbootConfigTree], {overwrite: true});
}
let fastbootConfigTree = this._buildFastbootConfigTree(newTree);

return tree;
// Merge the package.json with the existing tree
return new MergeTrees([newTree, fastbootConfigTree], {overwrite: true});
},

/**
Expand Down

0 comments on commit 97e4928

Please sign in to comment.