build(broccoli): add a tree-differ workaround to browser trees

This commit is contained in:
Igor Minar 2015-04-27 10:50:59 -07:00
parent 8ea03d0380
commit 2827ca1559
1 changed files with 5 additions and 0 deletions

View File

@ -117,5 +117,10 @@ module.exports = function makeBrowserTree(options, destinationPath) {
var mergedTree = mergeTrees([stew.mv(es6Tree, '/es6'), stew.mv(es5Tree, '/es5')]); var mergedTree = mergeTrees([stew.mv(es6Tree, '/es6'), stew.mv(es5Tree, '/es5')]);
// TODO(iminar): tree differ seems to have issues with trees created by mergeTrees, investigate!
// ENOENT error is thrown while doing fs.readdirSync on inputRoot
// in the meantime, we just do noop mv to create a new tree
mergedTree = stew.mv(mergedTree, '');
return destCopy(mergedTree, destinationPath); return destCopy(mergedTree, destinationPath);
}; };