Skip to content

Commit

Permalink
byoo push -> deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Aug 20, 2020
1 parent 1f656a3 commit 9630423
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/lib/lineParse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ const lineCorrections = (line: string, msgJSON: DeployRequest): string => {
// if the script didn't supply the concise line, make sure it's there.
return `${argStripper(line, '--concise', true)} --concise`;
}
if (line.includes('sfdx force:source:push') && isByoo(msgJSON) && isMultiRepo(msgJSON)) {
if (isByoo(msgJSON) && line.includes('sfdx force:source:push')) {
const project = fs.readJSONSync(`tmp/${msgJSON.deployId}/sfdx-project.json`);
// byoo might not be a scratch org, so we'll deploy it using deploy instead of push, referencing the project directories
return line.replace(
'sfdx force:source:push',
`sfdx force:source:deploy -p ${getPackageDirsFromFile(project)}`
);
}

return line;
};

Expand Down

0 comments on commit 9630423

Please sign in to comment.