@fluid-app/fluid-cli-theme-dev 0.1.916 → 0.1.917

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/README.md CHANGED
@@ -535,7 +535,8 @@ this directory names in the same place; a file that would still name a
535
535
  staging menu is kept. `members_sites.json` is never taken. When the
536
536
  directory then matches staging, its staging record moves to the current
537
537
  revision. With `--json` it prints `revision`, `taken`, `kept` (each with its
538
- `reason`) and `matches`.
538
+ `reason`), `matches`, and `verified` (false when the closing comparison
539
+ with staging couldn't be made, so `matches` is unconfirmed).
539
540
 
540
541
  ### Promoting staging to live
541
542
 
package/dist/index.mjs CHANGED
@@ -14338,7 +14338,8 @@ async function pullFromStaging(api, themeId, root, onProgress = () => {}, fetchB
14338
14338
  revision: after?.revision ?? local.revision,
14339
14339
  taken: taken.sort(),
14340
14340
  kept: kept.sort((a, b) => a.path.localeCompare(b.path)),
14341
- matches: after?.matches ?? false
14341
+ matches: after?.matches ?? false,
14342
+ verified: after !== null
14342
14343
  };
14343
14344
  }
14344
14345
  /** The file's digest as a publish would declare it, or undefined if absent. */
@@ -14615,7 +14616,7 @@ function createStagingCommand() {
14615
14616
  console.log("Kept as they are here:");
14616
14617
  for (const { path, reason } of outcome.kept) console.log(chalk.yellow(` ${path}: ${reason}`));
14617
14618
  }
14618
- console.log(outcome.matches ? "This directory now matches staging." : "This directory still differs from staging; publishing sends your copies of the files kept above.");
14619
+ console.log(!outcome.verified ? "Couldn't check this directory against staging afterwards; run `fluid theme staging compare`." : outcome.matches ? "This directory now matches staging." : "This directory still differs from staging; publishing sends your copies of the files kept above.");
14619
14620
  }));
14620
14621
  const promote = withThemeOptions$1(new Command("promote").description("Copy what staging serves onto the live theme, all at once, if the live theme hasn't changed since staging was based on it")).option("-y, --yes", "Promote without asking").option("--dry-run", "Show what promoting would change and the latest promotion; nothing is changed").option("--snapshot <id>", "Promote only this staging snapshot (a preview's snapshot_id); refuse if staging has changed since").action((opts) => run$1(opts, async () => {
14621
14622
  requireToken();