Skip to content

Commit 7e44433

Browse files
committed
Moved building fastboot config tree from postProcessTree to treeForPublic
1 parent ba9e689 commit 7e44433

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

index.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -218,23 +218,10 @@ module.exports = {
218218

219219
let newTree = new MergeTrees(trees);
220220

221-
return newTree;
222-
},
223-
224-
/**
225-
* After the entire Broccoli tree has been built for the `dist` directory,
226-
* adds the `fastboot-config.json` file to the root.
227-
*
228-
*/
229-
postprocessTree(type, tree) {
230-
if (type === 'all') {
231-
let fastbootConfigTree = this._buildFastbootConfigTree(tree);
232-
233-
// Merge the package.json with the existing tree
234-
return new MergeTrees([tree, fastbootConfigTree], {overwrite: true});
235-
}
221+
let fastbootConfigTree = this._buildFastbootConfigTree(newTree);
236222

237-
return tree;
223+
// Merge the package.json with the existing tree
224+
return new MergeTrees([newTree, fastbootConfigTree], {overwrite: true});
238225
},
239226

240227
/**

0 commit comments

Comments
 (0)