Skip to content

Commit

Permalink
Add note to README about watching (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
wclr authored and blakeembrey committed Mar 17, 2018
1 parent c882abb commit 6ea624b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -139,6 +139,12 @@ _Environment variable denoted in parentheses._
* `readFile` Custom TypeScript-compatible file reading function
* `fileExists` Custom TypeScript-compatible file existence function

## Watching and Restarting

**TypeScript Node** only compiles source code on the fly, watching files and code reloads are out of scope. If you want to restart the `ts-node` process on file changes, standard node.js tools exist already such as [nodemon](https://github.com/remy/nodemon), [onchange](https://github.com/Qard/onchange) and [node-dev](https://github.com/fgnass/node-dev).

There is also [`ts-node-dev`](https://github.com/whitecolor/ts-node-dev), a modified version of [`node-dev`](https://github.com/fgnass/node-dev) that uses `ts-node` for compilation and doesn't restart the process on every change.

## License

MIT
Expand Down

0 comments on commit 6ea624b

Please sign in to comment.