Skip to content
Myr

Allow tsx file extension for sub-commands (#1367) (#1368)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Bruno Fonseca · committed by GitHub · parent 0c18b86 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
836 unmodified lines
837838 _executeSubCommand(subcommand, args) {839 args = args.slice();840 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'];842843 // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.844 this._checkForMissingMandatoryOptions();845
1036 unmodified lines