@m8t-stack/cli 0.2.91 → 0.2.92

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/cli.js CHANGED
@@ -1487,7 +1487,7 @@ function installFoundryDnsShim() {
1487
1487
  }
1488
1488
 
1489
1489
  // src/lib/package-version.ts
1490
- var CLI_VERSION = "0.2.91";
1490
+ var CLI_VERSION = "0.2.92";
1491
1491
 
1492
1492
  // src/lib/render-error.ts
1493
1493
  init_errors();
@@ -24829,7 +24829,7 @@ function reportWhatIf(r, opts) {
24829
24829
  const exitCode = r.unexpected.length === 0 ? 0 : 1;
24830
24830
  if (opts.redact) {
24831
24831
  const output = opts.json ? JSON.stringify({ summary: redactForReport(r), exitCode }, null, 2) : redactForLog(r);
24832
- return { output, exitCode };
24832
+ return { output, exitCode, ...opts.json ? { diagnostic: redactForLog(r) } : {} };
24833
24833
  }
24834
24834
  if (opts.json) {
24835
24835
  return { output: JSON.stringify({ summary: { noise: r.noise.length, pending: r.pending.length, unexpected: r.unexpected.length }, pending: r.pending, unexpected: r.unexpected, exitCode }, null, 2), exitCode };
@@ -25096,8 +25096,9 @@ var DeployCommand = class extends M8tCommand {
25096
25096
  });
25097
25097
  const changes = await runWhatIf({ resourceGroup: this.resourceGroup, repoRoot: repoRoot2, params: params2 });
25098
25098
  const classified = classifyWhatIf(changes);
25099
- const { output, exitCode } = reportWhatIf(classified, { json: mode === "json", redact: this.redact });
25099
+ const { output, exitCode, diagnostic } = reportWhatIf(classified, { json: mode === "json", redact: this.redact });
25100
25100
  this.context.stdout.write(output + "\n");
25101
+ if (diagnostic) this.context.stderr.write(diagnostic + "\n");
25101
25102
  return exitCode;
25102
25103
  } catch (e) {
25103
25104
  const { output, exitCode } = reportWhatIfFailure(e, { json: mode === "json", redact: this.redact });