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();