sst 2.21.4 → 2.21.5
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/package.json +1 -1
- package/sst.mjs +4 -3
- package/stacks/synth.js +4 -4
package/package.json
CHANGED
package/sst.mjs
CHANGED
|
@@ -6433,8 +6433,6 @@ async function synth(opts) {
|
|
|
6433
6433
|
const cfg = new Configuration();
|
|
6434
6434
|
await cfg.load();
|
|
6435
6435
|
let previous2 = /* @__PURE__ */ new Set();
|
|
6436
|
-
const context = cfg.context.all;
|
|
6437
|
-
context[cxapi5.PATH_METADATA_ENABLE_CONTEXT] = project.config.cdk?.pathMetadata ?? false;
|
|
6438
6436
|
while (true) {
|
|
6439
6437
|
const app = new App2(
|
|
6440
6438
|
{
|
|
@@ -6449,7 +6447,10 @@ async function synth(opts) {
|
|
|
6449
6447
|
},
|
|
6450
6448
|
{
|
|
6451
6449
|
outdir: opts.buildDir,
|
|
6452
|
-
context
|
|
6450
|
+
context: {
|
|
6451
|
+
...cfg.context.all,
|
|
6452
|
+
[cxapi5.PATH_METADATA_ENABLE_CONTEXT]: project.config.cdk?.pathMetadata ?? false
|
|
6453
|
+
}
|
|
6453
6454
|
}
|
|
6454
6455
|
);
|
|
6455
6456
|
await opts.fn(app);
|
package/stacks/synth.js
CHANGED
|
@@ -41,9 +41,6 @@ export async function synth(opts) {
|
|
|
41
41
|
const cfg = new Configuration();
|
|
42
42
|
await cfg.load();
|
|
43
43
|
let previous = new Set();
|
|
44
|
-
const context = cfg.context.all;
|
|
45
|
-
context[cxapi.PATH_METADATA_ENABLE_CONTEXT] =
|
|
46
|
-
project.config.cdk?.pathMetadata ?? false;
|
|
47
44
|
while (true) {
|
|
48
45
|
const app = new App({
|
|
49
46
|
account: identity.Account,
|
|
@@ -56,7 +53,10 @@ export async function synth(opts) {
|
|
|
56
53
|
isActiveStack: opts.isActiveStack,
|
|
57
54
|
}, {
|
|
58
55
|
outdir: opts.buildDir,
|
|
59
|
-
context
|
|
56
|
+
context: {
|
|
57
|
+
...cfg.context.all,
|
|
58
|
+
[cxapi.PATH_METADATA_ENABLE_CONTEXT]: project.config.cdk?.pathMetadata ?? false,
|
|
59
|
+
},
|
|
60
60
|
});
|
|
61
61
|
await opts.fn(app);
|
|
62
62
|
await app.finish();
|