mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
Associate .tsx files with ts-node
This commit is contained in:
parent
9d980e017f
commit
6237bc9d65
@ -7,5 +7,6 @@
|
||||
".js" : "node",
|
||||
".coffee" : "coffee",
|
||||
".ls" : "lsc",
|
||||
".ts" : "ts-node"
|
||||
".ts" : "ts-node",
|
||||
".tsx" : "ts-node"
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user