(aws-cdk): Using aws-cdk in another package breaks the dependencies #20196
Labels
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
Hello,
Some time ago we developed an in-house Node module that automatically synthesized/deployed some CDK stacks based on a single string input naming the product developers want to deploy.
This module basically makes use of
aws-cdk
CLI to synth/deploy programatically.the
package.json
looks something like:This is the list of
devDependencies/dependencies
for theaws-cdk
package, however for some reason thenpm install
moves alldependencies
in thedevDependencies
according tonode_modules/aws-cdk-package.json
:Further one, when the in-house Node module is installed on another machine, it does not fetch any of the initial dependencies, thus gracefully complains about not finding the modules
Any idea why this is happening with the recent versions of
aws-cdk
and how to mitigate this?Expected Behavior
Installing the
aws-cdk
as a dependency in another module should keep the difference betweendependencies / devDependencies
, and not merging all of them together.Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
1.154.0
Framework Version
No response
Node.js Version
v17.6.0
OS
macOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: