Skip to content

Commit

Permalink
feat(app): add source map support to TS app template (#1581)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
otterley authored and rix0rrr committed Feb 4, 2019
1 parent aa68db5 commit 5df22d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
import 'source-map-support/register';
import cdk = require('@aws-cdk/cdk');
import { %name.PascalCased%Stack } from '../lib/%name%-stack';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"aws-cdk": "^%cdk-version%"
},
"dependencies": {
"@aws-cdk/cdk": "^%cdk-version%"
"@aws-cdk/cdk": "^%cdk-version%",
"source-map-support": "^0.5.9"
}
}

0 comments on commit 5df22d9

Please sign in to comment.