Fix for `embark build --contracts` writing into the pipeline

This commit is contained in:
emizzle 2018-06-22 15:26:43 +10:00
parent 9fb19ed78b
commit 53bda087fa
1 changed files with 6 additions and 1 deletions

View File

@ -194,7 +194,9 @@ class Embark {
engine.startService("libraryManager");
engine.startService("codeRunner");
engine.startService("web3");
engine.startService("pipeline");
if(!options.onlyCompile){
engine.startService("pipeline");
}
engine.startService("deployment", {onlyCompile: options.onlyCompile});
engine.startService("storage");
engine.startService("codeGenerator");
@ -209,6 +211,9 @@ class Embark {
engine.logger.info("Finished deploying".underline);
// Necessary log for simple projects. This event is trigger to soon because there is no file
// Also, not exiting straight after the deploy leaves time for async afterDeploys to finish
if(options.onlyCompile){
return callback();
}
engine.logger.info("If you have no files to build, you can exit now with CTRL+C");
engine.events.on('outputDone', callback);
}