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.
- package/constructs/App.d.ts +1 -0
- package/constructs/App.js +4 -0
- package/package.json +1 -1
- package/support/bridge/bridge.mjs +1 -1
package/constructs/App.d.ts
CHANGED
|
@@ -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();
|