Skip to content

Commit 0483ebd

Browse files
committed
clear/cls param
1 parent 719941a commit 0483ebd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bin/ts-node-dev

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ var opts = minimist(devArgs, {
2929
'prefer-ts',
3030
'exec-check',
3131
'debug',
32-
'tree-kill'
32+
'tree-kill',
33+
'clear', 'cls'
3334
],
3435
string: [
3536
'compiler',
@@ -47,7 +48,8 @@ var opts = minimist(devArgs, {
4748
'compile-timeout',
4849
'ignore-watch',
4950
'interval',
50-
'debounce'
51+
'debounce',
52+
'watch'
5153
],
5254
alias: {
5355
fast: 'F',

lib/cfg.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = function (main, opts) {
2727
if (opts.dedupe) c.dedupe = true;
2828
if (opts.respawn) c.respawn = true;
2929
if (opts.notify === false) c.notify = false;
30+
if (opts.clear || opts.cls) c.clear = true;
3031
}
3132

3233
var ignoreWatch = ([]).concat(opts && opts['ignore-watch'] || []).concat(c.ignore || []);
@@ -38,7 +39,7 @@ module.exports = function (main, opts) {
3839
notify: c.notify !== false,
3940
deps: c.deps,
4041
timestamp: c.timestamp || (c.timestamp !== false && 'HH:MM:ss'),
41-
clear: !!c.clear,
42+
clear: !!(c.clear),
4243
dedupe: !!c.dedupe,
4344
ignore: ignore,
4445
respawn: c.respawn || false,

0 commit comments

Comments
 (0)