Hello Christopher,
Infrastructure-Components and Infrastructure-Scripts work together. Infrastructure-Components comprise all the components and functions you can use in your app. ou work with it during run-time. Thus, you need to add it to the dependencies.
Infrastructure-Scripts contain all the functions you need during development. They contain scripts to build, start, and deploy your app. It uses quite a few libraries. You don’t need it during run-time. Thus, you can add it to the devDependencies. So, your app’s package does not become unnecessarily big.
And that’s the whole reason for splitting it all into two libraries. But you need both.