ts-node-dev
Advanced tools
Comparing version
@@ -39,3 +39,7 @@ var fork = require('child_process').fork | ||
var watcher = filewatcher({ forcePolling: opts.poll }) | ||
var watcher = filewatcher({ | ||
forcePolling: opts.poll, | ||
interval: parseInt(opts.interval), | ||
debounce: parseInt(opts.debounce) | ||
}) | ||
var starting = false | ||
@@ -42,0 +46,0 @@ watcher.on('change', function(file) { |
{ | ||
"name": "ts-node-dev", | ||
"version": "1.0.0-pre.32", | ||
"version": "1.0.0-pre.33", | ||
"description": "Compiles your TS app and restarts when files are modified.", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"test-node-dev": "tap test/*.js", | ||
"test": "node ./bin/ts-node-dev -r tsconfig-paths/register -r ./test/ts/add-require.js -r ./test/ts/add-require-2.js -O \"{\\\"module\\\": \\\"commonjs\\\"}\" --preserve-symlinks --respawn --ignore-watch 'lib' --ignore-watch bin --prefer-ts --debug --cache-directory .ts-node --inspect -- test/ts/test-script test-arg --fd", | ||
"test": "node ./bin/ts-node-dev -r tsconfig-paths/register -r ./test/ts/add-require.js -r ./test/ts/add-require-2.js -O \"{\\\"module\\\": \\\"commonjs\\\"}\" --preserve-symlinks --respawn --ignore-watch 'lib' --ignore-watch bin --prefer-ts --debug --poll --interval 1000 --cache-directory .ts-node --inspect -- test/ts/test-script test-arg --fd", | ||
"test-docker": "docker run --rm -v ${PWD}:/app mhart/alpine-node:8.7.0 sh -c 'cd app && node ./bin/ts-node-dev --cache-directory .ts-node test/ts/big'" | ||
@@ -45,0 +45,0 @@ }, |
@@ -44,2 +44,4 @@ # ts-node-dev | ||
- `--debug` - some additional debug output. | ||
- `--interval` Polling interval (ms) | ||
- `--debounce` Debounce file change events (ms, non-polling mode) | ||
@@ -46,0 +48,0 @@ **Caveats and points of notice:** |
Sorry, the diff of this file is not supported yet
34080
0.65%793
0.51%64
3.23%