sst 2.0.21 → 2.0.22
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/cli/commands/dev.js +10 -12
- package/package.json +1 -1
- package/sst.mjs +10 -12
package/cli/commands/dev.js
CHANGED
|
@@ -179,20 +179,18 @@ export const dev = (program) => program.command(["dev", "start"], "Work on your
|
|
|
179
179
|
lastDeployed = nextChecksum;
|
|
180
180
|
// Update site env
|
|
181
181
|
const keys = await SiteEnv.keys();
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
existing = result[key.path] = {};
|
|
191
|
-
}
|
|
192
|
-
existing[key.environment] = value;
|
|
182
|
+
const result = {};
|
|
183
|
+
for (const key of keys) {
|
|
184
|
+
const stack = results[key.stack];
|
|
185
|
+
const value = stack.outputs[key.output];
|
|
186
|
+
let existing = result[key.path];
|
|
187
|
+
if (!existing) {
|
|
188
|
+
result[key.path] = existing;
|
|
189
|
+
existing = result[key.path] = {};
|
|
193
190
|
}
|
|
194
|
-
|
|
191
|
+
existing[key.environment] = value;
|
|
195
192
|
}
|
|
193
|
+
await SiteEnv.writeValues(result);
|
|
196
194
|
// Write outputs.json
|
|
197
195
|
fs.writeFile(path.join(project.paths.out, "outputs.json"), JSON.stringify(pipe(results, omitBy((_, key) => key.includes("SstSiteEnv")), mapValues((val) => val.outputs)), null, 2));
|
|
198
196
|
isWorking = false;
|
package/package.json
CHANGED
package/sst.mjs
CHANGED
|
@@ -6696,20 +6696,18 @@ var dev = (program2) => program2.command(
|
|
|
6696
6696
|
}
|
|
6697
6697
|
lastDeployed = nextChecksum;
|
|
6698
6698
|
const keys2 = await SiteEnv.keys();
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
existing = result[key.path] = {};
|
|
6708
|
-
}
|
|
6709
|
-
existing[key.environment] = value;
|
|
6699
|
+
const result = {};
|
|
6700
|
+
for (const key of keys2) {
|
|
6701
|
+
const stack = results[key.stack];
|
|
6702
|
+
const value = stack.outputs[key.output];
|
|
6703
|
+
let existing = result[key.path];
|
|
6704
|
+
if (!existing) {
|
|
6705
|
+
result[key.path] = existing;
|
|
6706
|
+
existing = result[key.path] = {};
|
|
6710
6707
|
}
|
|
6711
|
-
|
|
6708
|
+
existing[key.environment] = value;
|
|
6712
6709
|
}
|
|
6710
|
+
await SiteEnv.writeValues(result);
|
|
6713
6711
|
fs19.writeFile(
|
|
6714
6712
|
path19.join(project.paths.out, "outputs.json"),
|
|
6715
6713
|
JSON.stringify(
|