From cf14b92e4c08defc0fa2631713e5faf1c536e89e Mon Sep 17 00:00:00 2001 From: Geoff Schmidt Date: Tue, 18 Mar 2014 00:37:13 -0700 Subject: [PATCH] make rebuild-all delete the right directory --- tools/catalog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/catalog.js b/tools/catalog.js index f219ab1880..e0e3ca8d78 100644 --- a/tools/catalog.js +++ b/tools/catalog.js @@ -11,6 +11,7 @@ var compiler = require('./compiler.js'); var buildmessage = require('./buildmessage.js'); var tropohouse = require('./tropohouse.js'); var watch = require('./watch.js'); +var files = require('./files.js'); var catalog = exports; @@ -487,7 +488,7 @@ _.extend(Catalog.prototype, { var count = 0; _.each(self.effectiveLocalPackages, function (loadPath, name) { var buildDir = path.join(loadPath, '.build'); - files.rm_recursive(loadPath); + files.rm_recursive(buildDir); }); // Now reload them, forcing a rebuild. We have to do this in two