Associate .tsx files with ts-node

This commit is contained in:
Danny Guo 2017-10-07 10:04:57 -04:00
parent 9d980e017f
commit 6237bc9d65
2 changed files with 3 additions and 2 deletions

View File

@ -7,5 +7,6 @@
".js" : "node",
".coffee" : "coffee",
".ls" : "lsc",
".ts" : "ts-node"
".ts" : "ts-node",
".tsx" : "ts-node"
}

View File

@ -156,7 +156,7 @@ function exec(script, stds) {
}
}
if (p.extname(script) == '.ts') {
if (p.extname(script) == '.ts' || p.extname(script) == '.tsx') {
try {
require('ts-node/register');
} catch (e) {