@orkestrel/scaffold 0.0.20 → 0.0.21

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.
@@ -226,11 +226,13 @@ function partitionFindings(findings, plan) {
226
226
  const origin = origins.get(finding.path);
227
227
  const owned = origin === "host" || origin === "template";
228
228
  if (finding.drift === "aligned") continue;
229
- if (finding.drift === "stale") if (owned) ownedDrifted += 1;
230
- else generatedDrifted += 1;
231
- else if (finding.drift === "missing") if (owned) ownedMissing += 1;
232
- else generatedMissing += 1;
233
- else if (owned) ownedForeign += 1;
229
+ if (finding.drift === "stale") {
230
+ if (owned) ownedDrifted += 1;
231
+ else generatedDrifted += 1;
232
+ } else if (finding.drift === "missing") {
233
+ if (owned) ownedMissing += 1;
234
+ else generatedMissing += 1;
235
+ } else if (owned) ownedForeign += 1;
234
236
  else generatedForeign += 1;
235
237
  }
236
238
  return {
@@ -1316,8 +1318,10 @@ var CLI = class {
1316
1318
  process.exitCode = 1;
1317
1319
  return;
1318
1320
  }
1319
- if (values.prune && !json) if (prunePaths.length === 0) this.#reporter.line(PRUNE_EMPTY);
1320
- else for (const line of prunePreview(prunePaths)) this.#reporter.line(line);
1321
+ if (values.prune && !json) {
1322
+ if (prunePaths.length === 0) this.#reporter.line(PRUNE_EMPTY);
1323
+ else for (const line of prunePreview(prunePaths)) this.#reporter.line(line);
1324
+ }
1321
1325
  const doPrune = prunePaths.length > 0 && await this.#prune(terminal, pruneConfirmMessage(prunePaths.length), values, json);
1322
1326
  let currentGlobal;
1323
1327
  try {
@@ -1436,8 +1440,10 @@ var CLI = class {
1436
1440
  return [repo.name, readTarget(repo.directory, paths)];
1437
1441
  })) : /* @__PURE__ */ new Map();
1438
1442
  const prunePaths = dirty.flatMap((repo) => Object.keys(pruneSets.get(repo.name) ?? {}).map((path) => `${repo.name}/${path}`));
1439
- if (proceed && values.prune && !json) if (prunePaths.length === 0) this.#reporter.line(PRUNE_EMPTY);
1440
- else for (const line of prunePreview(prunePaths)) this.#reporter.line(line);
1443
+ if (proceed && values.prune && !json) {
1444
+ if (prunePaths.length === 0) this.#reporter.line(PRUNE_EMPTY);
1445
+ else for (const line of prunePreview(prunePaths)) this.#reporter.line(line);
1446
+ }
1441
1447
  const doPrune = proceed && prunePaths.length > 0 && await this.#prune(terminal, pruneConfirmMessage(prunePaths.length), values, json);
1442
1448
  if (!proceed) {
1443
1449
  if (json) this.#write([...repos.map((repo) => fleetEntryOf(repo.name, repo.audit, false)), ...failures.map((failure) => fleetEntryOf(failure.name, void 0, true))]);