Skip to content

Commit d0b79ab

Browse files
fix: @W-19637353: LWC Deployment retrieve issue
1 parent 60a3e2d commit d0b79ab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/utils/sfcli/project/sfProject.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class sfProject {
3939
Logger.log(messages.getMessage('deployingFromManifest'));
4040
const cmd = `sf project deploy start --manifest "${manifestPath}" --target-org "${username}" --async`;
4141
Logger.log(cmd);
42-
const cmdOutput = sfProject.executeCommand(cmd);
42+
const cmdOutput = sfProject.executeCommand(cmd, true);
4343
Logger.logVerbose(`Deploy output: ${cmdOutput}`);
4444
sfProject.processOutput(cmdOutput);
4545
}
@@ -64,9 +64,13 @@ export class sfProject {
6464
}
6565
}
6666

67-
private static executeCommand(cmd: string): string {
67+
private static executeCommand(cmd: string, jsonOutput = false): string {
6868
try {
69-
return cli.exec(`${cmd} --json`);
69+
if (jsonOutput) {
70+
return cli.exec(`${cmd} --json`);
71+
} else {
72+
return cli.exec(`${cmd}`);
73+
}
7074
} catch (error) {
7175
Logger.error(messages.getMessage('sfProjectCommandError', [String(error)]));
7276
throw error;

0 commit comments

Comments
 (0)