(eg on OS that dont support recursive watch using fs.watch use fs.watchFile)
// which is same behaviour when recursive: true is passed to fs.watch
// Use notifications from FS to watch with falling back to fs.watchFile
// Use notifications from FS to watch with falling back to fs.watchFile
// Node 4.0 fs.watch function supports the "recursive" option on both OSX and Windows
// Node 4.0 fs.watch function supports the "recursive" option on both OSX and Windows
// so instead of throwing error, use fs.watchFile
// Watch the file or directory using fs.watchFile since fs.watch threw exception
watcher supports
fs.watch
function supports the "recursive" option on both OSX and Windows // Node 4.0fs.watch
function supports the "recursive" option on both OSX and Windows // so instead of throwing error, use fs.watchFile // Watch the file or directory using fs.watchFile since fs.watch threw exceptionhttps://github.com/stealify/typescript/issues/6