k-maru/grunt-typescript — pull request #70 by aceslick911 (2014-10-07 06:54:01+00:00)
Title: Removed resolving of "path" in "watch to Enable chokidar multiple file w...

chokidar watch supports multiple folders/files watching so I mosified the watchPath variable initialization.

chokidar.watch( , )

I also updated Task.prototype.writeWatchingMessage so that it will indicate how many folders/files are being watched if you have specified an array as the path variable.

The main reason for these modifications is to avoid ENOENT errors in windows. This error is unavoidable if you are watching a root directory with a large amount of TS files to watch. By specifying individual folders or subfolders, ENOENT error is much less likely to occur in my testing.