remy/nodemon — pull request #81 by jaredhanson (2012-04-09 05:58:36+00:00)
Title: Resolve paths, rather than appending to cwd, for full path support.

This is a full fix for [issue #78](https://github.com/remy/nodemon/issues/78)

It resolves arguments (rather than appending them to cwd), to test if they exist. For example, prior to the patch, this would work:

$ nodemon debug.js

but this wouldn't:

$ nodemon /Users/jaredhanson/Projects/test/debug.js

This was because the `existsSync` check was testing for the existence of `/Users/jaredhanson/Projects/test//Users/jaredhanson/Projects/test/debug.js` (cwd appended to the absolute path argument).

FYI, this is being run in a directory that contains a package.json file that does not have a `main` property.