Skip to content

Ability to modify default tsconfig.json which is added in /src/lambdas #15

@vspdi

Description

@vspdi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions