From d5c0aa2864a80387c858d4db68e65aab4bf67f3f Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Thu, 14 Nov 2024 09:08:11 +0000 Subject: [PATCH] fix(cdk): remove source-map-support from typescript init templates (#32113) ### Issue Closes #20754 Closes #30231 ### Reason for this change This package is no longer needed and not recommended for users. ### Description of changes Remove the package from `package.json` and sample code. ### Description of how you validated changes Tested locally. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../lib/init-templates/app/typescript/bin/%name%.template.ts | 1 - .../aws-cdk/lib/init-templates/app/typescript/package.json | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/aws-cdk/lib/init-templates/app/typescript/bin/%name%.template.ts b/packages/aws-cdk/lib/init-templates/app/typescript/bin/%name%.template.ts index fb6e9d5085377..7c042a481ef79 100644 --- a/packages/aws-cdk/lib/init-templates/app/typescript/bin/%name%.template.ts +++ b/packages/aws-cdk/lib/init-templates/app/typescript/bin/%name%.template.ts @@ -1,5 +1,4 @@ #!/usr/bin/env node -import 'source-map-support/register'; import * as cdk from 'aws-cdk-lib'; import { %name.PascalCased%Stack } from '../lib/%name%-stack'; diff --git a/packages/aws-cdk/lib/init-templates/app/typescript/package.json b/packages/aws-cdk/lib/init-templates/app/typescript/package.json index 9214e64bfe560..ed030600773d3 100644 --- a/packages/aws-cdk/lib/init-templates/app/typescript/package.json +++ b/packages/aws-cdk/lib/init-templates/app/typescript/package.json @@ -21,7 +21,6 @@ }, "dependencies": { "aws-cdk-lib": "%cdk-version%", - "constructs": "%constructs-version%", - "source-map-support": "^0.5.21" + "constructs": "%constructs-version%" } -} \ No newline at end of file +}