From 2827ca15591e3fee73ec2fe5f7b72a8f1b269743 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 27 Apr 2015 10:50:59 -0700 Subject: [PATCH] build(broccoli): add a tree-differ workaround to browser trees --- tools/broccoli/trees/browser_tree.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/broccoli/trees/browser_tree.ts b/tools/broccoli/trees/browser_tree.ts index 57e8a7744a..53ef777a1b 100644 --- a/tools/broccoli/trees/browser_tree.ts +++ b/tools/broccoli/trees/browser_tree.ts @@ -117,5 +117,10 @@ module.exports = function makeBrowserTree(options, destinationPath) { 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); };