Skip to content

Commit

Permalink
Allow tsx file extension for sub-commands (#1367) (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomacf committed Oct 4, 2020
1 parent 0c18b86 commit 39eadd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -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();
Expand Down

0 comments on commit 39eadd7

Please sign in to comment.