Skip to content

Commit 5df22d9

Browse files
otterleyrix0rrr
authored andcommitted
feat(app): add source map support to TS app template (#1581)
Add source map support to the TypeScript app entry point template. This won't retroactively fix existing CDK apps, but it will ensure that apps generated in the future via `cdk init --app` will have it enabled. Fixes #1579
1 parent aa68db5 commit 5df22d9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/aws-cdk/lib/init-templates/app/typescript/bin/%name%.template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
import 'source-map-support/register';
23
import cdk = require('@aws-cdk/cdk');
34
import { %name.PascalCased%Stack } from '../lib/%name%-stack';
45

packages/aws-cdk/lib/init-templates/app/typescript/package.template.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"aws-cdk": "^%cdk-version%"
1616
},
1717
"dependencies": {
18-
"@aws-cdk/cdk": "^%cdk-version%"
18+
"@aws-cdk/cdk": "^%cdk-version%",
19+
"source-map-support": "^0.5.9"
1920
}
2021
}

0 commit comments

Comments
 (0)