-
Notifications
You must be signed in to change notification settings - Fork 4.4k
chore(spec2cdk): refactor for mixins #35999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
50d58bd to
e7f032b
Compare
| { | ||
| type: ComponentType.CUSTOM_RESOURCE_PROVIDER, | ||
| sourceCode: path.resolve(__dirname, '..', 'core', 'cross-region-ssm-writer-handler', 'index.ts'), | ||
| constructorVisibility: MemberVisibility.Public, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is changing because the generated class is extended by another class. Previously due to a bug in @cdklabs/typewriter, the generated classes ended up with a public constructor instead of a private one as intended. After the dependency update this failed for the one case, which we make public again to satisfy the compiler.
67057b3 to
7a12a34
Compare
7a12a34 to
6e4b611
Compare
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Reason for this change
Refactoring some spec2cdk code to make it more re-usable for mixins codegen.
Description of changes
jsiiand@cdklabs/typewriterto the latest versions@aws-cdk/custom-resource-handlersthat arouse after the typewriter update. It's a private package and the changed generated code is also private, so this is safe.spec2cdkcode to make it more reusable.Describe any new or updated permissions being added
n/a
Description of how you validated changes
Existing tests passing. Additionally compared generated code by hand.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license