It would be nice, if the configuration would allow some overwrites to the tsconfig.json which is applied to the lambda bundling.
For example, we are trying to use inverisfy.js inside the lambdas for dependency injection. For that to work, we would need to set the following properties:
{
"compilerOptions": {
"emitDecoratorMetaData": true,
"experimentalDecorators": true
}
}
I would suggest, the following changes:
- Introduce two new optinal files:
tsconfig.lambdas.json and tsconfig.cdk.json (or any other names to distinguish)
- If those files exist, the project info picks them up so it can be later merged into the default default config file before beeing generated
If you like lets start a small discussion over this topic, potential problems or improvements.
I would be happy to contribute to this awesome project by implementing those ideas.
Greetings
Viktor
It would be nice, if the configuration would allow some overwrites to the tsconfig.json which is applied to the lambda bundling.
For example, we are trying to use inverisfy.js inside the lambdas for dependency injection. For that to work, we would need to set the following properties:
{ "compilerOptions": { "emitDecoratorMetaData": true, "experimentalDecorators": true } }I would suggest, the following changes:
tsconfig.lambdas.jsonandtsconfig.cdk.json(or any other names to distinguish)If you like lets start a small discussion over this topic, potential problems or improvements.
I would be happy to contribute to this awesome project by implementing those ideas.
Greetings
Viktor