sst 2.1.25 → 2.1.26

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.
@@ -171,6 +171,7 @@ export declare class App extends cdk.App {
171
171
  * Adds additional default layers to be applied to all Lambda functions in the stack.
172
172
  */
173
173
  addDefaultFunctionLayers(layers: lambda.ILayerVersion[]): void;
174
+ private isFinished;
174
175
  finish(): Promise<void>;
175
176
  isRunningSSTTest(): boolean;
176
177
  getInputFilesFromEsbuildMetafile(file: string): Array<string>;
package/constructs/App.js CHANGED
@@ -202,7 +202,11 @@ export class App extends cdk.App {
202
202
  layers,
203
203
  });
204
204
  }
205
+ isFinished = false;
205
206
  async finish() {
207
+ if (this.isFinished)
208
+ return;
209
+ this.isFinished = true;
206
210
  await useDeferredTasks().run();
207
211
  Auth.injectConfig();
208
212
  this.buildConstructsMetadata();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },