We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b85714 commit 8803647Copy full SHA for 8803647
src/frameworks/cdkFramework.ts
@@ -363,7 +363,12 @@ export class CdkFramework implements IFramework {
363
),
364
)
365
) {
366
- const codeToFind = 'super(scope,id),this.requestDestinationArn=!1;';
+ let codeToFind = 'super(scope,id),this.requestDestinationArn=!1;';
367
+
368
+ if (!contents.includes(codeToFind)) {
369
+ // newer CDK version
370
+ codeToFind = 'super(scope,id);';
371
+ }
372
373
if (!contents.includes(codeToFind)) {
374
throw new Error(`Can not find code to inject in ${args.path}`);
0 commit comments