move down prepublish script execution

This commit is contained in:
Sebastian McKenzie
2015-07-24 21:44:21 +01:00
parent a8f242f4fe
commit 41753c1a85

View File

@@ -95,10 +95,6 @@ changedPackages.forEach(function (name) {
// push to be git committed
changedFiles.push(pkgLoc);
// prepublish script
var prePub = loc + "/scripts/prepublish.js";
if (fs.existsSync(prePub)) require(prePub);
});
changedFiles.forEach(function (loc) {
@@ -112,6 +108,12 @@ exec("git push --tags", true);
exec("make build-dist");
changedPackages.forEach(function (name) {
// prepublish script
var prePub = getPackageLocation(name) + "/scripts/prepublish.js";
if (fs.existsSync(prePub)) require(prePub);
});
changedPackages.forEach(function (name) {
var loc = getPackageLocation(name);
exec("cd " + loc + " && npm publish", true);