Skip to content

(cli): publish official plugin contract #19564

@rix0rrr

Description

@rix0rrr

Description

Plugins today are a bit wishy-washy: they need to implement an interface that you need to copy out, and need to operate with another class whose interface also needs to be copied out.

Good enough for JavaScript, not good enough for TypeScript.

Our plugin interface needs to go into a separate package so that it can serve as a single source of truth, plus have tests on it that guarantee that it cannot be changed in a backwards incompatible way.

Use Case

Properly supporting plugins.

Proposed Solution

Introduce @aws-cdk/plugin-api, or similar.

Other information

No response

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.effort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions