From 7e4443368cf3b764c1c6683223e0756a7899bc1e Mon Sep 17 00:00:00 2001 From: Dinesh Nalagatla Date: Thu, 2 May 2019 22:35:01 -0700 Subject: [PATCH] Moved building fastboot config tree from postProcessTree to treeForPublic --- index.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/index.js b/index.js index 465e1058c..294cbb4a8 100644 --- a/index.js +++ b/index.js @@ -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}); }, /**