From d57b82bb6e2915264b7944f0ec2284d1e4800dd6 Mon Sep 17 00:00:00 2001 From: Bruno Fonseca Date: Thu, 1 Oct 2020 15:31:35 -0300 Subject: [PATCH] Allow tsx file extension for sub-commands (#1367) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c3ad03fe5..c85f72552 100644 --- a/index.js +++ b/index.js @@ -838,7 +838,7 @@ Read more on https://git.io/JJc0W`); _executeSubCommand(subcommand, args) { args = args.slice(); let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows. - const sourceExt = ['.js', '.ts', '.mjs']; + const sourceExt = ['.js', '.ts', '.tsx', '.mjs']; // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command. this._checkForMissingMandatoryOptions();