Skip to content

Commit a1fff58

Browse files
committed
fix: prettier formatting
1 parent 3c1f9c3 commit a1fff58

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

src/core/cloud-assembly.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ export class CloudAssemblyManager {
2323
}
2424

2525
async synthesize(options: SynthesizeOptions = {}): Promise<string> {
26-
const { profile, environment, outputDir, stacks, exclusively = true } = options;
26+
const {
27+
profile,
28+
environment,
29+
outputDir,
30+
stacks,
31+
exclusively = true,
32+
} = options;
2733
const cloudAssemblyPath = outputDir
2834
? join(process.cwd(), outputDir)
2935
: this.getCloudAssemblyPath();

src/core/orchestrator.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export async function deployToAllRegions(
158158

159159
if (deployments.length === 0) {
160160
logger.info("Using traditional pattern-based deployment");
161-
const stackPatterns = args.stackPattern.split(",").map(s => s.trim());
161+
const stackPatterns = args.stackPattern.split(",").map((s) => s.trim());
162162
for (const region of regions) {
163163
for (const stackName of stackPatterns) {
164164
deployments.push({
@@ -190,8 +190,12 @@ export async function deployToAllRegions(
190190
try {
191191
console.log(` [${profile}] Synthesizing cloud assembly...`);
192192

193-
const profileDeployments = deployments.filter(d => d.profile === profile);
194-
const stacksForProfile = [...new Set(profileDeployments.map(d => d.constructId))];
193+
const profileDeployments = deployments.filter(
194+
(d) => d.profile === profile,
195+
);
196+
const stacksForProfile = [
197+
...new Set(profileDeployments.map((d) => d.constructId)),
198+
];
195199

196200
const cloudAssembly = new CloudAssemblyManager();
197201
const assemblyPath = await cloudAssembly.synthesize({
@@ -229,7 +233,9 @@ export async function deployToAllRegions(
229233
logger.phase("Synthesis", "");
230234
console.log(` [${args.profile}] Synthesizing cloud assembly...`);
231235

232-
const stacksForProfile = [...new Set(deployments.map(d => d.constructId))];
236+
const stacksForProfile = [
237+
...new Set(deployments.map((d) => d.constructId)),
238+
];
233239

234240
const cloudAssembly = new CloudAssemblyManager();
235241
const assemblyPath = await cloudAssembly.synthesize({

0 commit comments

Comments
 (0)