Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4f7b48d

Browse files
mitchlloydElad Ben-Israel
authored and
Elad Ben-Israel
committedMay 14, 2019
feat(aws-cdk): use ts-node for TypeScript templates (#2527)
Update sample-app with ts-node in a backwards compatible way (`npm run build` still compiles the code). Closes #1532
1 parent 8e3c4ca commit 4f7b48d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"app": "node bin/%name%.js"
2+
"app": "./node_modules/.bin/ts-node bin/%name%.ts"
33
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"devDependencies": {
1313
"@types/node": "8.10.45",
1414
"typescript": "^3.3.3333",
15+
"ts-node": "^8.1.0",
1516
"aws-cdk": "^%cdk-version%"
1617
},
1718
"dependencies": {
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"app": "node bin/%name%.js"
2+
"app": "./node_modules/.bin/ts-node bin/%name%.ts"
33
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"devDependencies": {
1313
"@types/node": "8.10.45",
1414
"typescript": "^3.3.3333",
15+
"ts-node": "^8.1.0",
1516
"aws-cdk": "^%cdk-version%"
1617
},
1718
"dependencies": {

0 commit comments

Comments
 (0)
Failed to load comments.