Skip to content

Commit 4552b57

Browse files
committed
And fix
1 parent ba2498a commit 4552b57

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/@aws-cdk/core/lib/stack.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,10 +1162,7 @@ export class Stack extends CoreConstruct implements ITaggable {
11621162
const bundlingStacks: string[] = this.node.tryGetContext(cxapi.BUNDLING_STACKS) ?? ['*'];
11631163

11641164
// bundlingStacks is of the form `Stage/Stack`, convert it to `Stage-Stack` before comparing to stack name
1165-
return bundlingStacks.some(pattern => minimatch(
1166-
this.stackName,
1167-
pattern.replace('/', '-'),
1168-
));
1165+
return bundlingStacks.some(pattern => minimatch(this.node.path, pattern));
11691166
}
11701167
}
11711168

0 commit comments

Comments
 (0)