From 68d047d83c2e282009dff754987f38d0746f3ad1 Mon Sep 17 00:00:00 2001 From: ljacobsson Date: Mon, 27 Jun 2022 23:26:36 +0200 Subject: [PATCH] fix: CDKv2 failure --- package.json | 2 +- shared/templateParser.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 397765e..30e69d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mhlabs/cfn-diagram", - "version": "1.1.33", + "version": "1.1.34", "description": "CLI tool to visualise CloudFormation, SAM or CDK stacks as draw.io, visjs networks or ascii-art", "main": "index.js", "scripts": { diff --git a/shared/templateParser.js b/shared/templateParser.js index dce31da..3d1b648 100644 --- a/shared/templateParser.js +++ b/shared/templateParser.js @@ -108,7 +108,7 @@ function fromCDK(cmd) { templateCache.templates[parentStack] = parsedTemplate; templateCache.rootTemplate = parentStack; stacks = stacks.filter(p => p != parentStack); - for (const stack of stacks) { + for (const stack of stacks.filter(p => !p.endsWith(".assets"))) { const childTemplate = fs.readFileSync( path.join(cmd.cdkOutput, `${stack}.template.json`) );