@sandblocks/cli 0.5.0-b.30 → 0.5.0-b.31

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
@@ -13171,7 +13171,7 @@ async function sync(args, dependencies) {
13171
13171
  }
13172
13172
  let previousDigest = "";
13173
13173
  const apply = async () => {
13174
- const source = await dependencies.source(context.root, context.state.sequence > 0 ? context.state.sourceManifest : undefined);
13174
+ const source = await dependencies.source(context.root, context.state.sourceSyncInitialized === true ? context.state.sourceManifest : undefined);
13175
13175
  const digest = createHash2("sha256").update(source.bundle).digest("hex");
13176
13176
  if (digest === previousDigest)
13177
13177
  return;
@@ -13195,6 +13195,7 @@ async function sync(args, dependencies) {
13195
13195
  const completed = await wait(context.apiUrl, context.apiKey, submitted.operation.id, 5 * 60000);
13196
13196
  context.state.sourceRevision = String(completed.result?.revision ?? digest);
13197
13197
  context.state.sourceManifest = source.manifest;
13198
+ context.state.sourceSyncInitialized = true;
13198
13199
  await writeState(context.file, context.state);
13199
13200
  console.log(`sync revision=${context.state.sourceRevision} changed=${completed.result?.changed ?? 0} deleted=${completed.result?.deleted ?? 0}`);
13200
13201
  if (context.options.checks !== "none") {
@@ -16648,4 +16649,4 @@ export {
16648
16649
  parse2 as parse
16649
16650
  };
16650
16651
 
16651
- //# debugId=1ACBE96EF1A30A1864756E2164756E21
16652
+ //# debugId=1BF5DC414419B92F64756E2164756E21