Skip to content

Commit 39eadd7

Browse files
authored
Allow tsx file extension for sub-commands (#1367) (#1368)
1 parent 0c18b86 commit 39eadd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ Read more on https://git.io/JJc0W`);
838838
_executeSubCommand(subcommand, args) {
839839
args = args.slice();
840840
let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.
841-
const sourceExt = ['.js', '.ts', '.mjs'];
841+
const sourceExt = ['.js', '.ts', '.tsx', '.mjs'];
842842

843843
// Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.
844844
this._checkForMissingMandatoryOptions();

0 commit comments

Comments
 (0)