sst 2.11.9 → 2.11.11

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.
@@ -6,8 +6,10 @@ export const build = (program) => program.command("build", "Build your app", (ya
6
6
  const { Stacks } = await import("../../stacks/index.js");
7
7
  const { Colors } = await import("../colors.js");
8
8
  const path = await import("path");
9
+ const project = useProject();
10
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
9
11
  const result = await Stacks.synth({
10
- fn: useProject().stacks,
12
+ fn: sstConfig.stacks,
11
13
  buildDir: args.to,
12
14
  mode: "deploy",
13
15
  });
@@ -70,8 +70,9 @@ export const deploy = (program) => program.command("deploy [filter]", "Deploy yo
70
70
  const spinner = createSpinner({
71
71
  text: " Building...",
72
72
  });
73
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
73
74
  const result = await Stacks.synth({
74
- fn: project.stacks,
75
+ fn: sstConfig.stacks,
75
76
  mode: "deploy",
76
77
  isActiveStack,
77
78
  });
@@ -11,8 +11,9 @@ export const diff = (program) => program.command("diff", "Compare your app with
11
11
  const { Colors } = await import("../colors.js");
12
12
  // Build app
13
13
  const project = useProject();
14
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
14
15
  const assembly = await Stacks.synth({
15
- fn: project.stacks,
16
+ fn: sstConfig.stacks,
16
17
  mode: args.dev ? "dev" : "deploy",
17
18
  });
18
19
  // Diff each stack
@@ -24,8 +24,9 @@ export const remove = (program) => program.command("remove [filter]", "Remove yo
24
24
  const result = await loadAssembly(args.from);
25
25
  return result;
26
26
  }
27
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
27
28
  return await Stacks.synth({
28
- fn: project.stacks,
29
+ fn: sstConfig.stacks,
29
30
  mode: "remove",
30
31
  });
31
32
  })();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.11.9",
4
+ "version": "2.11.11",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
package/sst.mjs CHANGED
@@ -7501,8 +7501,10 @@ var build = (program2) => program2.command(
7501
7501
  const { Stacks } = await Promise.resolve().then(() => (init_stacks(), stacks_exports));
7502
7502
  const { Colors: Colors2 } = await Promise.resolve().then(() => (init_colors(), colors_exports));
7503
7503
  const path20 = await import("path");
7504
+ const project = useProject2();
7505
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
7504
7506
  const result = await Stacks.synth({
7505
- fn: useProject2().stacks,
7507
+ fn: sstConfig.stacks,
7506
7508
  buildDir: args.to,
7507
7509
  mode: "deploy"
7508
7510
  });
@@ -7589,8 +7591,9 @@ Are you sure you want to deploy to this stage? (y/N) `,
7589
7591
  const spinner = createSpinner2({
7590
7592
  text: " Building..."
7591
7593
  });
7594
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
7592
7595
  const result = await Stacks.synth({
7593
- fn: project.stacks,
7596
+ fn: sstConfig.stacks,
7594
7597
  mode: "deploy",
7595
7598
  isActiveStack
7596
7599
  });
@@ -7655,8 +7658,9 @@ var remove2 = (program2) => program2.command(
7655
7658
  const result = await loadAssembly2(args.from);
7656
7659
  return result;
7657
7660
  }
7661
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
7658
7662
  return await Stacks.synth({
7659
- fn: project.stacks,
7663
+ fn: sstConfig.stacks,
7660
7664
  mode: "remove"
7661
7665
  });
7662
7666
  }();
@@ -8165,8 +8169,9 @@ var diff2 = (program2) => program2.command(
8165
8169
  const { createSpinner: createSpinner2 } = await Promise.resolve().then(() => (init_spinner(), spinner_exports));
8166
8170
  const { Colors: Colors2 } = await Promise.resolve().then(() => (init_colors(), colors_exports));
8167
8171
  const project = useProject2();
8172
+ const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
8168
8173
  const assembly = await Stacks.synth({
8169
- fn: project.stacks,
8174
+ fn: sstConfig.stacks,
8170
8175
  mode: args.dev ? "dev" : "deploy"
8171
8176
  });
8172
8177
  let changesAcc = 0;