Skip to content

Commit

Permalink
Updated exectution to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
steegecs committed Aug 29, 2022
1 parent 0039f60 commit 9846809
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deployment/execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ function scripts(protocol, network, template, location, constants, type) {
}
scripts.push(codegen);

if (type == "build") {
// Null value for type assumes you want to deploy
if (type == null) {
scripts.push(deployment);
} else if (type == "deploy") {
scripts.push(deployment);
} else if (type == "build") {
scripts.push(build);
} else {
scripts.push(deployment);
console.log("Error: invalid type - Neither build nor deploy");
}

return scripts;
Expand Down

0 comments on commit 9846809

Please sign in to comment.