I have a lib package that has (following AWS guidance)
"devDependencies": {
"aws-cdk-lib": "2.1.0"
},
"peerDependencies": {
"aws-cdk-lib": "^2.1.0"
},
It is checked out in parallel with my app package and depended via relative path.
"dependencies": {
"lib": "../../lib",
"aws-cdk-lib": "2.39.0"
},
Current behaviour:
npm install
in libnpm install
in app creates a symblink to lib innode_module
."aws-cdk-lib": "2.1.0"
is used.
Desired behaviour:
npm install
in libnpm install
in app clones the src of lib, and builds lib innode_module
with"aws-cdk-lib": "2.39.0"
How do I achieve this?
I don't want to use other workarounds like depending via git repo because I don't have an easy way to get git credentials during deployment.