Skip to content

Commit

Permalink
fix(pipeline): build contracts even when pipeline is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and iurimatias committed Apr 4, 2019
1 parent 6b2dc95 commit 75af5c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/embark/src/lib/modules/pipeline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class Pipeline {
});

this.events.setCommandHandler('pipeline:build', (options, callback) => {
if(!this.pipelineConfig.enabled) return callback();
if(!this.pipelineConfig.enabled) {
return this.buildContracts([], callback);
}
this.build(options, callback);
});
this.events.setCommandHandler('pipeline:build:contracts', callback => this.buildContracts([], callback));
Expand Down

0 comments on commit 75af5c4

Please sign in to comment.