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.
@@ -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
- if (keys.length) {
183
- const result = {};
184
- for (const key of keys) {
185
- const stack = results[key.stack];
186
- const value = stack.outputs[key.output];
187
- let existing = result[key.path];
188
- if (!existing) {
189
- result[key.path] = existing;
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
- await SiteEnv.writeValues(result);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },
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
- if (keys2.length) {
6700
- const result = {};
6701
- for (const key of keys2) {
6702
- const stack = results[key.stack];
6703
- const value = stack.outputs[key.output];
6704
- let existing = result[key.path];
6705
- if (!existing) {
6706
- result[key.path] = existing;
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
- await SiteEnv.writeValues(result);
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(