Skip to content

Commit 410a096

Browse files
committed
ignore notice
1 parent c709153 commit 410a096

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ tsnd --respawn server.ts
4040
**Also there are additional options specific to `ts-node-dev`:**
4141

4242
- `--prefer-ts` (`--prefer-ts-exts`) - (default: false) - For each `.js` file (that is not in `node_modules`) will try to check if corresponding `.ts` version exists and require it.
43+
4344
- `--ignore-watch` - (default: []) - files/folders to be [ignored by `node-dev`](https://github.com/fgnass/node-dev#ignore-paths). **But also this behaviour enhanced:** it will also make up `new RegExp` of passed ignore string and check absolute paths of required files for match.
44-
So, to ignore everything in `node_modules`, just pass `--ignore-watch node_modules`, or us `--no-deps` for the same effect.
45+
46+
- use `--deps` to watch `node_modules`, by default watching it turned off.
47+
4548

4649
- `--debug` - Some additional debug output.
4750
- `--interval` - Polling interval (ms)

bin/ts-node-dev

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var opts = minimist(devArgs, {
2424
// ts-node
2525
'dir',
2626
'scope',
27-
'emit',
27+
'emit',
2828
'files',
2929
'pretty',
3030
'transpile-only',
@@ -36,7 +36,7 @@ var opts = minimist(devArgs, {
3636
'skip-project',
3737
'skip-ignore',
3838
'compiler-host',
39-
'script-mode'
39+
'script-mode',
4040
],
4141
string: [
4242
'compile-timeout',
@@ -60,7 +60,7 @@ var opts = minimist(devArgs, {
6060
compiler: 'C',
6161
project: 'P',
6262
},
63-
default: { deps: true, notify: true, rs: false, 'type-check': true },
63+
default: { deps: false, notify: true, rs: false, 'type-check': true },
6464
unknown: function (arg) {
6565
unknown.push(arg)
6666
return true

0 commit comments

Comments
 (0)