make rebuild-all delete the right directory

This commit is contained in:
Geoff Schmidt
2014-03-18 00:37:13 -07:00
parent 8f394328ac
commit cf14b92e4c

View File

@@ -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