Skip to content

Commit

Permalink
Merge pull request Unitech#3200 from dguo/tsx
Browse files Browse the repository at this point in the history
Associate .tsx files with ts-node
  • Loading branch information
Unitech authored Oct 7, 2017
2 parents 92857ba + f181f9e commit e87896c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/API/interpreter.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
".js" : "node",
".coffee" : "coffee",
".ls" : "lsc",
".ts" : "ts-node"
".ts" : "ts-node",
".tsx" : "ts-node"
}
2 changes: 1 addition & 1 deletion lib/ProcessContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e87896c

Please sign in to comment.