Skip to content

Commit 0934656

Browse files
author
Marcin J. Puhacz
committed
fix(core): make skip flag use stack id instead of stack name
1 parent d6afdaf commit 0934656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/core/lib/asset-staging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class AssetStaging extends CoreConstruct {
189189
if (props.bundling) {
190190
// Check if we actually have to bundle for this stack
191191
const bundlingStacks: string[] = this.node.tryGetContext(cxapi.BUNDLING_STACKS) ?? ['*'];
192-
skip = !bundlingStacks.find(pattern => minimatch(Stack.of(this).stackName, pattern));
192+
skip = !bundlingStacks.find(pattern => minimatch(Stack.of(this).node.id, pattern));
193193
const bundling = props.bundling;
194194
stageThisAsset = () => this.stageByBundling(bundling, skip);
195195
} else {

0 commit comments

Comments
 (0)