1
0
Fork 0
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:
Samuel Reis 2010-03-03 14:31:30 +01:00
parent 5fd0972b5d
commit c11c3ed2f2

View file

@ -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