cdk8s-team / cdk8s

Define Kubernetes native apps and abstractions using object-oriented programming
https://cdk8s.io
Apache License 2.0
4.29k stars 290 forks source link

npx cdk8s-cli init typescript-app produces a 300MB directory #973

Open spion opened 2 years ago

spion commented 2 years ago

Description of the bug:

Running `npx cdk8s-cli init typescript-app produces a 300MB sized directory, of which about 180MB are 3 copies of typescript - the toplevel typescript, the one in jsii and the one in jisii-rosetta. image

Few questions come to mind:

Reproduction Steps:

npx cdk8s-cli init typescript-app
du -sh

Error Log:

278MB

Environment:

This is :bug: Bug Report

iliapolo commented 2 years ago

Hi @spion. Thanks for this! Let us have a look and we'll provide some details. I'm carefully assuming we can indeed better align the versions and reduce the size.

spion commented 1 year ago

This is still an issue, current size is 280MB. The 3 copies of typescript are still there. jsii is still there even though a purely typescript app doesn't need any translation to other languages

github-actions[bot] commented 1 month ago

This issue has not received any attention in 1 year and will be closed soon. If you want to keep it open, please leave a comment below @mentioning a maintainer.

spion commented 1 month ago

Still a problem: current size 284MB. If anything, the size is slowly growing.

This is also the primary reason why I'm currently recommending against using cdk8s (typescript version) whenever asked about it. The amount of npm package churn (via e.g. vulnerability reports and necessary updates and similar) and the size of the surface area quickly negatively offsets quite a bit of the benefits of nicer infrastructure as code.