Skip to content

Commit e29c54e

Browse files
committed
wip
1 parent cab7827 commit e29c54e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/aws-cdk/lib/cli/cdk-toolkit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ export class CdkToolkit {
13651365
const assembly = await this.assembly();
13661366
const stacks = await assembly.selectStacks(selector, {
13671367
extend: exclusively ? ExtendedStackSelection.None : ExtendedStackSelection.Downstream,
1368-
defaultBehavior: DefaultSelection.OnlySingle, // TODO: should we add a condition to select all stacks in the assembly if no patterns are provided?
1368+
defaultBehavior: DefaultSelection.OnlySingle,
13691369
});
13701370

13711371
// No validation

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ export class CloudAssembly extends BaseStackAssembly {
103103
throw new ToolkitError('This app contains no stacks');
104104
}
105105

106-
if (allTopLevel && options.defaultBehavior === DefaultSelection.AllStacks) {
106+
const someCondition = false // TODO: replace
107+
if (allTopLevel && someCondition) {
107108
return new StackCollection(this, stacks);
108109
} else if (allTopLevel) {
109110
return this.selectTopLevelStacks(stacks, topLevelStacks, options.extend);

0 commit comments

Comments
 (0)