Skip to content

Commit 7187be9

Browse files
emizzleiurimatias
authored andcommitted
Fix for embark build --contracts writing into the pipeline
1 parent bb21490 commit 7187be9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ class Embark {
194194
engine.startService("libraryManager");
195195
engine.startService("codeRunner");
196196
engine.startService("web3");
197-
engine.startService("pipeline");
197+
if(!options.onlyCompile){
198+
engine.startService("pipeline");
199+
}
198200
engine.startService("deployment", {onlyCompile: options.onlyCompile});
199201
engine.startService("storage");
200202
engine.startService("codeGenerator");
@@ -209,6 +211,9 @@ class Embark {
209211
engine.logger.info("Finished deploying".underline);
210212
// Necessary log for simple projects. This event is trigger to soon because there is no file
211213
// Also, not exiting straight after the deploy leaves time for async afterDeploys to finish
214+
if(options.onlyCompile){
215+
return callback();
216+
}
212217
engine.logger.info("If you have no files to build, you can exit now with CTRL+C");
213218
engine.events.on('outputDone', callback);
214219
}

0 commit comments

Comments
 (0)