Skip to content

Commit 73e8ac1

Browse files
committed
revert the process to original code
1 parent b0ae317 commit 73e8ac1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/aws-cdk/lib/cxapp/cloud-assembly.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ export class CloudAssembly extends BaseStackAssembly {
119119
): Promise<StackCollection> {
120120
if (topLevelStacks.length > 0) {
121121
return this.extendStacks(topLevelStacks, stacks, extend);
122-
} else if (stacks.length > 0) {
123-
// Fallback to all stacks if no top-level stacks (e.g., app including stages only in top-level assembly)
124-
return new StackCollection(this, stacks);
125122
} else {
126123
throw new ToolkitError('No stack found in the main cloud assembly. Use "list" to print manifest');
127124
}

0 commit comments

Comments
 (0)