mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
fix: process.watchFile has moved to fs.watchFile
This commit is contained in:
parent
5fd0972b5d
commit
c11c3ed2f2
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ compile_stdio: ->
|
|||
# files are updated.
|
||||
watch_scripts: ->
|
||||
watch: (source) ->
|
||||
process.watchFile source, {persistent: true, interval: 500}, (curr, prev) ->
|
||||
fs.watchFile source, {persistent: true, interval: 500}, (curr, prev) ->
|
||||
return if curr.mtime.getTime() is prev.mtime.getTime()
|
||||
fs.readFile source, (err, code) -> compile_script(source, code)
|
||||
watch(source) for source in sources
|
||||
|
|
Loading…
Add table
Reference in a new issue