@inforge/migrations-tools-cli 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -560,9 +560,14 @@ var TriggersHandler = class {
|
|
|
560
560
|
await this.logger.debug("Executing deploy command", { command: deployCmd, cwd: tempDir });
|
|
561
561
|
const { stdout: deployOut, stderr: deployErr } = await execAsync(deployCmd, { cwd: tempDir });
|
|
562
562
|
await this.logger.debug("Deploy result", { stdout: deployOut, stderr: deployErr });
|
|
563
|
-
|
|
563
|
+
const isLocaleError = deployErr && deployErr.includes("Missing message metadata.transfer:Finalizing");
|
|
564
|
+
const deploySucceeded = deployOut && (deployOut.includes("Deploy Succeeded") || deployOut.includes("Status: Succeeded") || deployOut.includes("Deployment completed successfully"));
|
|
565
|
+
if (deployErr && !isLocaleError && !deploySucceeded) {
|
|
564
566
|
throw new Error(`Deployment failed: ${deployErr}`);
|
|
565
567
|
}
|
|
568
|
+
if (isLocaleError) {
|
|
569
|
+
await this.logger.debug("Ignoring SF CLI locale message error - deployment appears successful");
|
|
570
|
+
}
|
|
566
571
|
await this.logger.info("Successfully updated trigger status via SF CLI deployment", {
|
|
567
572
|
triggerCount: triggerNames.length,
|
|
568
573
|
status
|
package/package.json
CHANGED