-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove default js in "--watch-extensions" option; closes #3275
- Loading branch information
1 parent
3633fa0
commit c580294
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,7 +200,7 @@ program | |
.option('--trace-deprecation', 'show stack traces on deprecations') | ||
.option('--trace-warnings', 'show stack traces on node process warnings') | ||
.option('--use_strict', 'enforce strict mode') | ||
.option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, []) | ||
.option('--watch-extensions <ext>,...', 'specify extensions to monitor with --watch', list, []) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
boneskull
Contributor
|
||
.option('--delay', 'wait for async suite definition') | ||
.option('--allow-uncaught', 'enable uncaught errors to propagate') | ||
.option('--forbid-only', 'causes test marked with only to fail the suite') | ||
|
@@ -529,7 +529,7 @@ if (program.watch) { | |
process.exit(130); | ||
}); | ||
|
||
const watchFiles = utils.files(cwd, [ 'js' ].concat(program.watchExtensions)); | ||
const watchFiles = utils.files(cwd, program.watchExtensions); | ||
let runAgain = false; | ||
|
||
loadAndRun = () => { | ||
|
Couldn't you get the best of both worlds -- override everything (per #3275 for the TypeScript user) AND use existing Javascript by specifying the default parameter as 'js'?