@sandblocks/cli 0.5.0-b.30 → 0.5.0-b.32
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 +4 -3
- package/dist/cli.js.map +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4408,7 +4408,7 @@ function resolveEnvironment(manifest, id2) {
|
|
|
4408
4408
|
branches: environment.branches,
|
|
4409
4409
|
checkProfile: environment.checkProfile,
|
|
4410
4410
|
goal: `${environment.id} sandbox`,
|
|
4411
|
-
deploymentType: environment.
|
|
4411
|
+
deploymentType: environment.managedEnvironment,
|
|
4412
4412
|
baseDomain: environment.baseDomain,
|
|
4413
4413
|
domains: environment.domains,
|
|
4414
4414
|
stableDomains: environment.stableDomains,
|
|
@@ -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.
|
|
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=
|
|
16652
|
+
//# debugId=71274AD6817D1D7F64756E2164756E21
|