Skip to content

Commit

Permalink
fix: CDKv2 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Jun 27, 2022
1 parent 05cfa76 commit 68d047d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion shared/templateParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
);
Expand Down

0 comments on commit 68d047d

Please sign in to comment.