You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -37,25 +36,24 @@ There is also short alias `tsnd` for running `ts-node-dev`:
37
36
tsnd --respawn server.ts
38
37
```
39
38
40
-
41
39
Look up flags and options can be used [in ts-node's docs](https://github.com/TypeStrong/ts-node#cli-and-programmatic-options).
42
40
43
-
44
41
**Also there are additional options specific to `ts-node-dev`:**
45
42
46
43
-`--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.
47
44
48
45
- use `--deps` to watch `node_modules`, by default watching it turned off.
-`--watch` - Explicitly add arbitrary files or folders to watch and restart on change (list separated by commas, [chokidar](https://github.com/paulmillr/chokidar) patterns)
56
-
-`--exit-child` - Adds 'SIGTERM' exit handler in a child process.
57
-
-`--rs` - Allow to restart with "rs" line entered in stdio, disabled by default.
58
-
-`--no-notify` - Do not display desktop-notifications (Notifications are only displayed if `node-notifier` is installed).
*`--watch` - Explicitly add arbitrary files or folders to watch and restart on change (list separated by commas, [chokidar](https://github.com/paulmillr/chokidar) patterns)
52
+
*`--exit-child` - Adds 'SIGTERM' exit handler in a child process.
53
+
*`--rs` - Allow to restart with "rs" line entered in stdio, disabled by default.
54
+
*`--no-notify` - Do not display desktop-notifications (Notifications are only displayed if `node-notifier` is installed).
55
+
56
+
If you need to detect that you are running with `ts-node-dev`, check if `process.env.TS_NODE_DEV` is set.
0 commit comments