+ have bin/buster-dev-tools put things in the right place, no matter where you invoke it from #6

Merged
merged 1 commit into from Mar 30, 2012
View
5 lib/buster-dev-tools.js
@@ -1,9 +1,10 @@
-var CWD = process.cwd();
var path = require("path");
var cp = require("child_process");
var util = require("util");
var fs = require("fs");
+var devDir = path.resolve(__dirname, "../../"); // dev env is two folders up from this script, independent of current working dir
+
function doOperations(projects, operations) {
if (operations.length == 0) return;
@@ -88,7 +89,7 @@ function getProject (project) {
};
}
- project.localPath = path.join(CWD, project.name);
+ project.localPath = path.join(devDir, project.name);
return project;
}